<?php include('header.php');?>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
	$(".s1_l_t a").hover(function(){
		$(".s1_l_t a").removeClass("s1_l_t_s");
		$(this).addClass("s1_l_t_s");
	},
	function(){ })
	$(".s2_b ul li").hover(function(){
		$(".s2_b ul li").removeClass("s2_b_b");
		$(".s2_b ul li a").css("color", "#4b4b4b");
		$(this).addClass("s2_b_b");
		$(this).find("a").css("color", "#fff");
	},
	function(){;})
})
</script>
<!-- body begin -->
<div class="blank5"></div>
<div class="body_content">
	<!--div class="s1">
		<div class="s1_l">
			<div class="s1_l_t">
				<a href="#" class="s1_l_t_s">全部</a>
				<a href="#">片名</a>
				<a href="#">主演</a>
				<a href="#">导演</a>
			</div>
			<div class="s1_l_b">
				<input type="text" class="s1_l_txt">
			</div>
			<input type="button" class="s1_l_btn" value=""/>
		</div>
		<div class="s1_r">
			<span class="s1_r_t">热门:</span>
			<span class="s1_r_c">
				<a href="#">速度与激情</a>
				<a href="#">速度与激情</a>
				<a href="#">速度与激情</a>
				<a href="#">速度与激情</a>
				<a href="#">速度与激情</a>
			</span>
		</div>
	</div-->
	<div class="blank5"></div>
	<div class="s2">
		<div class="s2_t"><span>搜索结果</span>&nbsp;共找到&nbsp;<font><?=$_totalNum?></font>&nbsp;条与&nbsp;“<font><?=$keyword?></font>”&nbsp;相关的结果。</div>
		<div class="s2_m"></div>
		<div class="s2_b">
			<ul>
				<li <?php if(!$class_id):?>class="s2_b_b"<?php endif;?>><a href="<?=config_item('i_base_url');?>search/1/?keyword=<?=$keyword?>">全部(<?=$totalNum?>)</a></li>
                <?php foreach($totalDetail as $item):?>
				<li <?php if($class_id == $item['class']):?>class="s2_b_b"<?php endif;?>>
                    <a href="<?=config_item('i_base_url');?>search/1/?keyword=<?=$keyword?>&class=<?=$item['class']?>"><?=$item['name']?>(<?=$item['num']?>)</a>
                </li>
                <?php endforeach;?>
			</ul>
		</div>
	</div>
	<div class="blank5"></div>
	<div class="banner"><img src="<?=config_item('i_base_url');?>images/banner.jpg"  alt="广告" width="966" height="92"></div>
	<div class="blank5"></div>
	<div class="s3">
		<div class="s3_l">
			<!--foreach begin-->
            <?php foreach($data as $v):?>
			<div class="s3_l_c">
				<div class="s3_l_img"><a href="<?=movie_url($v['id'])?>" target="_blank"><img src="<?=image_url($v['id']);?>" width="130" height="180" onerror="dy.nopic(this)" alt="<?=$v['china_name']?>"/></a></div>
			  	<div class="s3_l_i">
					<p class="s3_l_p1"><a href="<?=movie_url($v['id'])?>" target="_blank" title="<?=$v['china_name']?>"><?=$v['china_name']?></a></p>
					<p>
						<span class="left">演员：
                            <?php $starring = explode('|', $v['starring']);foreach($starring as $p):?>
                            <a href="<?=config_item('i_base_url');?>search?keyword=<?=urlencode(trim($p))?>" target="_blank" title="<?=$p?>"><?=trim($p)?></a>
                            <?php endforeach;?>
                        </span>
					</p>
					<div class="smallclean"></div>
                      <p>
                          <span style="width:250px" class="left">导演：<?=$v['director']?></span>
                          <span class="left">年代：<?=$v['public_time']?></span>
                      </p>
                      <div class="smallclean"></div>
					<p>
                        <span style="width:250px" class="left">国家/地区：<?=$v['area']?></span>
						<span class="left">类型：视频&nbsp;喜剧&nbsp;动作</span>
					</p>
					<div class="smallclean"></div>
					<div class="s3_l_p3" style="height:70px;">
                        <a href="<?=movie_url($v['id'])?>" target="_blank">
                            <?=str_replace(array("\n","\r",' '), array('','',''), strip_tags($v['drama']))?>
                        </a>
                    </div>
				</div>
			</div>
			<!--if 前九个-->
			<div class="s3_l_m"></div>
			<!--elseif 最后一个-->
			<!--分页代码-->
			<!--endif-->
            <?php endforeach;?>
			<!--foreach end-->
			<!--分页-->
			<div style="margin-top:10px" class="page">
                <?=$page_html?>
				<!--span>共1/20页</span>
				<div>转到第
					<select name="topage">
						<option value="1">1</option>
						<option value="1">2</option>
					</select>
					页
				</div-->
			</div>
			<div class="blank10"></div>
			<!--分页end-->
		</div>
		<div class="s3_r">
			<p class="s3_r_p1">搜索推荐</p><hr style="margin-right:10px;">
			<!--foreach begin-->
            <?php foreach($tuijian as $v):?>
			<div class="s3_r_c">
				<div class="s3_r_img"><a href="<?=movie_url($v['id'])?>" target="_blank"><img src="<?=image_url($v['id']);?>" width="85" height="122" onerror="dy.nopic(this)" alt="<?=$v['china_name']?>"/></a></div>
				<div class="s3_r_i">
					<p><span class="s3_r_span"><a href="<?=movie_url($v['id'])?>" target="_blank"><?=$v['china_name']?></a></span></p>
					<p class="s3_l_p3">
                        <a href="<?=movie_url($v['id'])?>" target="_blank">
                        <?=$v['drama']?>
                        </a>
                    </p>
				</div>
			</div>
            <?php endforeach;?>
			<!--foreach end-->
			<div class="blank10"></div>
		</div>
		<!--淘宝广告-->
		<div class="tb_ad"><img src="<?=config_item('i_base_url');?>images/pic/tb_ad.jpg" width="290" height="340" alt="广告"/></div>
		<!--广告end-->	

	</div>
	<div class="ie7"></div>
</div>
<div class="blank5"></div>
<!-- body end -->
<?php include('footer.php');?>